{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\scottclifford\Dropbox\Research\Group Attitudes\Replication\s3log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}29 May 2024, 16:00:09

{com}. do "C:\Users\SCOTTC~1\AppData\Local\Temp\1\STD5354_000000.tmp"
{txt}
{com}. 
. use "s3data.dta"
{txt}
{com}. 
. *Partisan identity
. gen PID=pid
{txt}
{com}. recode PID 1=2 2=6 3/4=4
{txt}(1,286 changes made to {bf:PID})

{com}. recode PID 2=1 if pidd==1
{txt}(347 changes made to {bf:PID})

{com}. recode PID 6=7 if pidr==1
{txt}(266 changes made to {bf:PID})

{com}. recode PID 4=3 if pidi==1
{txt}(109 changes made to {bf:PID})

{com}. recode PID 4=5 if pidi==2
{txt}(113 changes made to {bf:PID})

{com}. replace PID=(PID-4)/3
{txt}(1,366 real changes made)

{com}. recode PID -1/-.5=1 -.4/.4=2 .5/1=3, gen(PID3)
{txt}(1,366 differences between {bf:PID} and {bf:PID3})

{com}. recode ideo 1/3=1 4=2 5/7=3, gen(ideo3)
{txt}(1,256 differences between {bf:ideo} and {bf:ideo3})

{com}. 
. *pretreatment group attitudes
. rename groups_pre_2 mormon_fav_pre
{res}{txt}
{com}. replace mormon_fav_pre=mormon_fav_pre/100
{txt}variable {bf}{res}mormon_fav_pre{sf}{txt} was {bf}{res}byte{sf}{txt} now {bf}{res}float{sf}
{txt}(1,263 real changes made)

{com}. 
. *policy attitudes. high = oppose policy
. recode environ_pos (8=6) (9=7), gen(env_pos)
{txt}(113 differences between {bf:environ_pos} and {bf:env_pos})

{com}. replace env_pos=(env_pos-4)/3
{txt}variable {bf}{res}env_pos{sf}{txt} was {bf}{res}byte{sf}{txt} now {bf}{res}float{sf}
{txt}(1,366 real changes made)

{com}. gen env_imp=(environ_imp-1)/4
{txt}(1 missing value generated)

{com}. gen env_mc=(environ_mc-1)/4
{txt}
{com}. gen env_attext=(env_imp + env_mc)/2
{txt}(1 missing value generated)

{com}. 
. *policy attitude moderator
. gen env_mod=env_pos*env_attext
{txt}(1 missing value generated)

{com}. 
. *outcome variables
. gen morm_values=(mormon_values-1)/4
{txt}(286 missing values generated)

{com}. gen morm_close=(mormon_close-1)/3
{txt}(286 missing values generated)

{com}. gen morm_fav=(mormons_fav-7)/-6
{txt}(286 missing values generated)

{com}. gen MormDV=(morm_values+morm_close+morm_fav)/3
{txt}(286 missing values generated)

{com}. alpha morm_values morm_close morm_fav, item casewise

{txt}Test scale = mean(unstandardized items)

                                                            Average
                             Item-test     Item-rest       interitem
Item         {c |}  Obs  Sign   correlation   correlation     covariance      alpha
{hline 13}{c +}{hline 65}
morm_values{col 14}{c |}{res}{col 16}1080{col 24}+{col 31} 0.8704{col 45} 0.6970{col 59} .0402236{col 73} 0.7179
{txt}morm_close{col 14}{c |}{res}{col 16}1080{col 24}+{col 31} 0.8972{col 45} 0.7329{col 59} .0340586{col 73} 0.6798
{txt}morm_fav{col 14}{c |}{res}{col 16}1080{col 24}+{col 31} 0.7956{col 45} 0.5897{col 59} .0550904{col 73} 0.8236
{txt}{hline 13}{c +}{hline 65}
Test scale{col 14}{c |}{res}{col 59} .0431242{col 73} 0.8164
{txt}{hline 13}{c BT}{hline 65}

{com}. 
. *treatment condition
. gen MormTreat=.
{txt}(1,366 missing values generated)

{com}. replace MormTreat=0 if groupcond=="control"
{txt}(667 real changes made)

{com}. replace MormTreat=1 if groupcond=="treatment"
{txt}(699 real changes made)

{com}. 
. *manipulation checks
. recode mormons_check (4=5) (5=4) (6=3) (7=2) (8=1), gen(MormPID)
{txt}(1,080 differences between {bf:mormons_check} and {bf:MormPID})

{com}. recode mormons_enviro (4=5) (5=4) (6=3) (7=2) (8=1), gen(MormENV)
{txt}(1,079 differences between {bf:mormons_enviro} and {bf:MormENV})

{com}. 
. 
. ************
. * analysis *
. ************
. 
. *table a1. manipulation checks
. reg MormPID MormTreat

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,080
{txt}{hline 13}{c +}{hline 34}   F(1, 1078)      = {res}     0.80
{txt}       Model {c |} {res} 1.08668104         1  1.08668104   {txt}Prob > F        ={res}    0.3701
{txt}    Residual {c |} {res} 1457.13184     1,078  1.35169929   {txt}R-squared       ={res}    0.0007
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}   -0.0002
{txt}       Total {c |} {res} 1458.21852     1,079  1.35145368   {txt}Root MSE        =   {res} 1.1626

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     MormPID{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}MormTreat {c |}{col 14}{res}{space 2} .0634936{col 26}{space 2}  .070814{col 37}{space 1}    0.90{col 46}{space 3}0.370{col 54}{space 4}-.0754552{col 67}{space 3} .2024424
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 3.779923{col 26}{space 2} .0510829{col 37}{space 1}   74.00{col 46}{space 3}0.000{col 54}{space 4}  3.67969{col 67}{space 3} 3.880156
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg MormENV MormTreat

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,079
{txt}{hline 13}{c +}{hline 34}   F(1, 1077)      = {res}    19.37
{txt}       Model {c |} {res} 24.5863892         1  24.5863892   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1366.71482     1,077  1.26900169   {txt}R-squared       ={res}    0.0177
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0168
{txt}       Total {c |} {res}  1391.3012     1,078  1.29063192   {txt}Root MSE        =   {res} 1.1265

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     MormENV{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}MormTreat {c |}{col 14}{res}{space 2} .3021425{col 26}{space 2} .0686429{col 37}{space 1}    4.40{col 46}{space 3}0.000{col 54}{space 4} .1674535{col 67}{space 3} .4368314
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 3.011583{col 26}{space 2} .0494956{col 37}{space 1}   60.85{col 46}{space 3}0.000{col 54}{space 4} 2.914464{col 67}{space 3} 3.108702
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. *table a4. main analyses
. reg MormDV i.MormTreat##c.env_mod PID mormon_fav_pre

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,076
{txt}{hline 13}{c +}{hline 34}   F(5, 1070)      = {res}    73.68
{txt}       Model {c |} {res} 14.5282849         5  2.90565698   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 42.1960209     1,070  .039435534   {txt}R-squared       ={res}    0.2561
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2526
{txt}       Total {c |} {res} 56.7243058     1,075  .052766796   {txt}Root MSE        =   {res} .19858

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}             MormDV{col 21}{c |} Coefficient{col 33}  Std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}1.MormTreat {c |}{col 21}{res}{space 2} .0021311{col 33}{space 2} .0141036{col 44}{space 1}    0.15{col 53}{space 3}0.880{col 61}{space 4}-.0255427{col 74}{space 3} .0298049
{txt}{space 12}env_mod {c |}{col 21}{res}{space 2} .0128871{col 33}{space 2} .0233514{col 44}{space 1}    0.55{col 53}{space 3}0.581{col 61}{space 4}-.0329326{col 74}{space 3} .0587069
{txt}{space 19} {c |}
MormTreat#c.env_mod {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.1214865{col 33}{space 2} .0305901{col 44}{space 1}   -3.97{col 53}{space 3}0.000{col 61}{space 4}-.1815099{col 74}{space 3} -.061463
{txt}{space 19} {c |}
{space 16}PID {c |}{col 21}{res}{space 2} .0606717{col 33}{space 2} .0086727{col 44}{space 1}    7.00{col 53}{space 3}0.000{col 61}{space 4} .0436542{col 74}{space 3} .0776892
{txt}{space 5}mormon_fav_pre {c |}{col 21}{res}{space 2} .3500392{col 33}{space 2} .0197824{col 44}{space 1}   17.69{col 53}{space 3}0.000{col 61}{space 4} .3112226{col 74}{space 3} .3888558
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .2434935{col 33}{space 2} .0141546{col 44}{space 1}   17.20{col 53}{space 3}0.000{col 61}{space 4} .2157197{col 74}{space 3} .2712673
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store m1
{txt}
{com}. 
. margins, dydx(MormTreat) at(env_mod=(-1(.2)1))
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:1,076}
{txt}{col 1}Model VCE: {res:OLS}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:1.MormTreat}{p_end}
{p2colreset}{...}
{lalign 8:1._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:-1}}
{lalign 8:2._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:-.8}}
{lalign 8:3._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:-.6}}
{lalign 8:4._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:-.4}}
{lalign 8:5._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:-.2}}
{lalign 8:6._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:0}}
{lalign 8:7._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:.2}}
{lalign 8:8._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:.4}}
{lalign 8:9._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:.6}}
{lalign 8:10._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:.8}}
{lalign 8:11._at: }{space 0}{lalign 7:env_mod} = {res:{ralign 3:1}}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.MormTreat {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.MormTreat  {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .1236175{col 26}{space 2} .0263474{col 37}{space 1}    4.69{col 46}{space 3}0.000{col 54}{space 4} .0719192{col 67}{space 3} .1753159
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0993203{col 26}{space 2} .0211047{col 37}{space 1}    4.71{col 46}{space 3}0.000{col 54}{space 4}  .057909{col 67}{space 3} .1407316
{txt}{space 10}3  {c |}{col 14}{res}{space 2}  .075023{col 26}{space 2} .0164771{col 37}{space 1}    4.55{col 46}{space 3}0.000{col 54}{space 4}  .042692{col 67}{space 3}  .107354
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .0507257{col 26}{space 2} .0131316{col 37}{space 1}    3.86{col 46}{space 3}0.000{col 54}{space 4} .0249591{col 67}{space 3} .0764923
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .0264284{col 26}{space 2} .0121756{col 37}{space 1}    2.17{col 46}{space 3}0.030{col 54}{space 4} .0025377{col 67}{space 3} .0503191
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .0021311{col 26}{space 2} .0141036{col 37}{space 1}    0.15{col 46}{space 3}0.880{col 54}{space 4}-.0255427{col 67}{space 3} .0298049
{txt}{space 10}7  {c |}{col 14}{res}{space 2}-.0221662{col 26}{space 2} .0180121{col 37}{space 1}   -1.23{col 46}{space 3}0.219{col 54}{space 4}-.0575093{col 67}{space 3} .0131769
{txt}{space 10}8  {c |}{col 14}{res}{space 2}-.0464635{col 26}{space 2}  .022909{col 37}{space 1}   -2.03{col 46}{space 3}0.043{col 54}{space 4}-.0914153{col 67}{space 3}-.0015117
{txt}{space 10}9  {c |}{col 14}{res}{space 2}-.0707608{col 26}{space 2} .0282855{col 37}{space 1}   -2.50{col 46}{space 3}0.013{col 54}{space 4}-.1262622{col 67}{space 3}-.0152594
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-.0950581{col 26}{space 2} .0339143{col 37}{space 1}   -2.80{col 46}{space 3}0.005{col 54}{space 4}-.1616042{col 67}{space 3} -.028512
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-.1193554{col 26}{space 2} .0396881{col 37}{space 1}   -3.01{col 46}{space 3}0.003{col 54}{space 4}-.1972308{col 67}{space 3}  -.04148
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, yline(0) recast(line) recastci(rarea) ciopts(col(gs10%30)) xtitle("Environmental Regulation") xlab(-1 `""Strongly" "support""' -.5 " " 0 "Neither" .5 " " 1 `""Strongly" "oppose""') xsc(titlegap(2)) ytitle("Marginal Treatment Effect", size(small)) title("") subtitle("Attitudes Toward Mormons")  addplot(hist env_mod, freq yaxis(2) yscale(alt axis(2)) ytitle("Frequency", axis(2) size(small)) fcolor(none) bcolor(gs5%40)) legend(off) saving(s3.gph, replace)
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:env_mod}{p_end}
{res}{txt}file {bf:s3.gph} saved

{com}. 
. *creating figure 1
. graph combine s1.gph s2.gph s3.gph, rows(1) ysize(4) xsize(12) saving(figure1.gph, replace)
{res}{txt}file {bf:figure1.gph} saved

{com}. 
. *just FAV as DV
. reg morm_fav i.MormTreat##c.env_mod PID mormon_fav_pre

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,076
{txt}{hline 13}{c +}{hline 34}   F(5, 1070)      = {res}    67.31
{txt}       Model {c |} {res} 15.2291643         5  3.04583287   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 48.4202297     1,070  .045252551   {txt}R-squared       ={res}    0.2393
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2357
{txt}       Total {c |} {res}  63.649394     1,075  .059208739   {txt}Root MSE        =   {res} .21273

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}           morm_fav{col 21}{c |} Coefficient{col 33}  Std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}1.MormTreat {c |}{col 21}{res}{space 2}-.0147356{col 33}{space 2}  .015108{col 44}{space 1}   -0.98{col 53}{space 3}0.330{col 61}{space 4}-.0443802{col 74}{space 3} .0149091
{txt}{space 12}env_mod {c |}{col 21}{res}{space 2} .0152319{col 33}{space 2} .0250144{col 44}{space 1}    0.61{col 53}{space 3}0.543{col 61}{space 4} -.033851{col 74}{space 3} .0643148
{txt}{space 19} {c |}
MormTreat#c.env_mod {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0934426{col 33}{space 2} .0327687{col 44}{space 1}   -2.85{col 53}{space 3}0.004{col 61}{space 4}-.1577407{col 74}{space 3}-.0291444
{txt}{space 19} {c |}
{space 16}PID {c |}{col 21}{res}{space 2} .0388283{col 33}{space 2} .0092904{col 44}{space 1}    4.18{col 53}{space 3}0.000{col 61}{space 4} .0205989{col 74}{space 3} .0570578
{txt}{space 5}mormon_fav_pre {c |}{col 21}{res}{space 2}  .378194{col 33}{space 2} .0211912{col 44}{space 1}   17.85{col 53}{space 3}0.000{col 61}{space 4}  .336613{col 74}{space 3} .4197751
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3480498{col 33}{space 2} .0151626{col 44}{space 1}   22.95{col 53}{space 3}0.000{col 61}{space 4}  .318298{col 74}{space 3} .3778017
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store m3
{txt}
{com}. 
. *just CLOSE as DV
. reg morm_close i.MormTreat##c.env_mod PID mormon_fav_pre

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,076
{txt}{hline 13}{c +}{hline 34}   F(5, 1070)      = {res}    47.50
{txt}       Model {c |} {res} 16.4918345         5   3.2983669   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 74.2942075     1,070  .069433839   {txt}R-squared       ={res}    0.1817
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1778
{txt}       Total {c |} {res}  90.786042     1,075  .084452132   {txt}Root MSE        =   {res}  .2635

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         morm_close{col 21}{c |} Coefficient{col 33}  Std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}1.MormTreat {c |}{col 21}{res}{space 2} .0175802{col 33}{space 2} .0187142{col 44}{space 1}    0.94{col 53}{space 3}0.348{col 61}{space 4}-.0191404{col 74}{space 3} .0543009
{txt}{space 12}env_mod {c |}{col 21}{res}{space 2} .0166365{col 33}{space 2} .0309852{col 44}{space 1}    0.54{col 53}{space 3}0.591{col 61}{space 4}-.0441622{col 74}{space 3} .0774352
{txt}{space 19} {c |}
MormTreat#c.env_mod {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.1093682{col 33}{space 2} .0405904{col 44}{space 1}   -2.69{col 53}{space 3}0.007{col 61}{space 4}-.1890139{col 74}{space 3}-.0297224
{txt}{space 19} {c |}
{space 16}PID {c |}{col 21}{res}{space 2} .0527778{col 33}{space 2} .0115079{col 44}{space 1}    4.59{col 53}{space 3}0.000{col 61}{space 4} .0301971{col 74}{space 3} .0753585
{txt}{space 5}mormon_fav_pre {c |}{col 21}{res}{space 2}  .381186{col 33}{space 2} .0262494{col 44}{space 1}   14.52{col 53}{space 3}0.000{col 61}{space 4} .3296798{col 74}{space 3} .4326921
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .1540866{col 33}{space 2} .0187818{col 44}{space 1}    8.20{col 53}{space 3}0.000{col 61}{space 4} .1172332{col 74}{space 3}   .19094
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store m4
{txt}
{com}. 
. *just VALUES as DV
. reg morm_values i.MormTreat##c.env_mod PID mormon_fav_pre

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,076
{txt}{hline 13}{c +}{hline 34}   F(5, 1070)      = {res}    44.89
{txt}       Model {c |} {res} 13.5769268         5  2.71538536   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 64.7169858     1,070  .060483164   {txt}R-squared       ={res}    0.1734
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1695
{txt}       Total {c |} {res} 78.2939126     1,075  .072831547   {txt}Root MSE        =   {res} .24593

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        morm_values{col 21}{c |} Coefficient{col 33}  Std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}1.MormTreat {c |}{col 21}{res}{space 2} .0035486{col 33}{space 2} .0174664{col 44}{space 1}    0.20{col 53}{space 3}0.839{col 61}{space 4}-.0307236{col 74}{space 3} .0378208
{txt}{space 12}env_mod {c |}{col 21}{res}{space 2}  .006793{col 33}{space 2} .0289192{col 44}{space 1}    0.23{col 53}{space 3}0.814{col 61}{space 4}-.0499518{col 74}{space 3} .0635378
{txt}{space 19} {c |}
MormTreat#c.env_mod {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.1616486{col 33}{space 2} .0378839{col 44}{space 1}   -4.27{col 53}{space 3}0.000{col 61}{space 4}-.2359838{col 74}{space 3}-.0873135
{txt}{space 19} {c |}
{space 16}PID {c |}{col 21}{res}{space 2}  .090409{col 33}{space 2} .0107406{col 44}{space 1}    8.42{col 53}{space 3}0.000{col 61}{space 4} .0693339{col 74}{space 3}  .111484
{txt}{space 5}mormon_fav_pre {c |}{col 21}{res}{space 2} .2907375{col 33}{space 2} .0244992{col 44}{space 1}   11.87{col 53}{space 3}0.000{col 61}{space 4} .2426657{col 74}{space 3} .3388094
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .228344{col 33}{space 2} .0175295{col 44}{space 1}   13.03{col 53}{space 3}0.000{col 61}{space 4} .1939479{col 74}{space 3} .2627401
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store m5
{txt}
{com}. 
. *robustness
. reg MormDV i.MormTreat##c.env_mod i.MormTreat##c.PID mormon_fav_pre

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,076
{txt}{hline 13}{c +}{hline 34}   F(6, 1069)      = {res}    61.35
{txt}       Model {c |} {res} 14.5297103         6  2.42161838   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 42.1945956     1,069   .03947109   {txt}R-squared       ={res}    0.2561
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2520
{txt}       Total {c |} {res} 56.7243058     1,075  .052766796   {txt}Root MSE        =   {res} .19867

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}             MormDV{col 21}{c |} Coefficient{col 33}  Std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}1.MormTreat {c |}{col 21}{res}{space 2} .0017857{col 33}{space 2} .0142265{col 44}{space 1}    0.13{col 53}{space 3}0.900{col 61}{space 4}-.0261293{col 74}{space 3} .0297007
{txt}{space 12}env_mod {c |}{col 21}{res}{space 2} .0139235{col 33}{space 2} .0239901{col 44}{space 1}    0.58{col 53}{space 3}0.562{col 61}{space 4}-.0331495{col 74}{space 3} .0609965
{txt}{space 19} {c |}
MormTreat#c.env_mod {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.1236918{col 33}{space 2} .0327304{col 44}{space 1}   -3.78{col 53}{space 3}0.000{col 61}{space 4}-.1879148{col 74}{space 3}-.0594687
{txt}{space 19} {c |}
{space 16}PID {c |}{col 21}{res}{space 2} .0590388{col 33}{space 2} .0122116{col 44}{space 1}    4.83{col 53}{space 3}0.000{col 61}{space 4} .0350774{col 74}{space 3} .0830002
{txt}{space 19} {c |}
{space 4}MormTreat#c.PID {c |}
{space 17}1  {c |}{col 21}{res}{space 2} .0032935{col 33}{space 2} .0173313{col 44}{space 1}    0.19{col 53}{space 3}0.849{col 61}{space 4}-.0307139{col 74}{space 3} .0373008
{txt}{space 19} {c |}
{space 5}mormon_fav_pre {c |}{col 21}{res}{space 2} .3499749{col 33}{space 2} .0197942{col 44}{space 1}   17.68{col 53}{space 3}0.000{col 61}{space 4} .3111351{col 74}{space 3} .3888147
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .2436715{col 33}{space 2} .0141919{col 44}{space 1}   17.17{col 53}{space 3}0.000{col 61}{space 4} .2158244{col 74}{space 3} .2715187
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store m2
{txt}
{com}. 
. esttab m1 m2 m3 m4 m5, drop(0.MormTreat*) se(2) b(2) r2(2)
{res}
{txt}{hline 92}
{txt}                      (1)             (2)             (3)             (4)             (5)   
{txt}                   MormDV          MormDV        morm_fav      morm_close     morm_values   
{txt}{hline 92}
{txt}1.MormTreat {res}         0.00            0.00           -0.01            0.02            0.00   {txt}
            {res} {ralign 12:{txt:(}0.01{txt:)}}    {ralign 12:{txt:(}0.01{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}   {txt}

{txt}env_mod     {res}         0.01            0.01            0.02            0.02            0.01   {txt}
            {res} {ralign 12:{txt:(}0.02{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}    {ralign 12:{txt:(}0.03{txt:)}}    {ralign 12:{txt:(}0.03{txt:)}}    {ralign 12:{txt:(}0.03{txt:)}}   {txt}

{txt}1.MormTrea~d{res}        -0.12***        -0.12***        -0.09**         -0.11**         -0.16***{txt}
            {res} {ralign 12:{txt:(}0.03{txt:)}}    {ralign 12:{txt:(}0.03{txt:)}}    {ralign 12:{txt:(}0.03{txt:)}}    {ralign 12:{txt:(}0.04{txt:)}}    {ralign 12:{txt:(}0.04{txt:)}}   {txt}

{txt}PID         {res}         0.06***         0.06***         0.04***         0.05***         0.09***{txt}
            {res} {ralign 12:{txt:(}0.01{txt:)}}    {ralign 12:{txt:(}0.01{txt:)}}    {ralign 12:{txt:(}0.01{txt:)}}    {ralign 12:{txt:(}0.01{txt:)}}    {ralign 12:{txt:(}0.01{txt:)}}   {txt}

{txt}mormon_fav~e{res}         0.35***         0.35***         0.38***         0.38***         0.29***{txt}
            {res} {ralign 12:{txt:(}0.02{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}    {ralign 12:{txt:(}0.03{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}   {txt}

{txt}1.MormTrea~D{res}                         0.00                                                   {txt}
            {res}                 {ralign 12:{txt:(}0.02{txt:)}}                                                   {txt}

{txt}_cons       {res}         0.24***         0.24***         0.35***         0.15***         0.23***{txt}
            {res} {ralign 12:{txt:(}0.01{txt:)}}    {ralign 12:{txt:(}0.01{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}    {ralign 12:{txt:(}0.02{txt:)}}   {txt}
{txt}{hline 92}
{txt}N           {res}         1076            1076            1076            1076            1076   {txt}
{txt}R-sq        {res}         0.26            0.26            0.24            0.18            0.17   {txt}
{txt}{hline 92}
{txt}Standard errors in parentheses
{txt}* p<0.05, ** p<0.01, *** p<0.001

{com}. 
. 
. ** CACE **
. recode MormENV 4/5=1 1/3=0, gen(MormENV_di)
{txt}(1,079 differences between {bf:MormENV} and {bf:MormENV_di})

{com}. tab MormENV_di MormTreat, col chi2
{txt}
{c TLC}{hline 19}{c TRC}
{c |} Key{col 21}{c |}
{c LT}{hline 19}{c RT}
{c |}{space 5}{it:frequency}{col 21}{c |}
{c |}{space 1}{it:column percentage}{col 21}{c |}
{c BLC}{hline 19}{c BRC}

 RECODE of {c |}
   MormENV {c |}
(RECODE of {c |}
mormons_en {c |}       MormTreat
     viro) {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       382        324 {txt}{c |}{res}       706 
           {txt}{c |}{res}     73.75      57.75 {txt}{c |}{res}     65.43 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       136        237 {txt}{c |}{res}       373 
           {txt}{c |}{res}     26.25      42.25 {txt}{c |}{res}     34.57 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       518        561 {txt}{c |}{res}     1,079 
           {txt}{c |}{res}    100.00     100.00 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 30.4481  {txt} Pr = {res}0.000
{txt}
{com}. 
. *favor
. reg MormENV_di MormTreat if env_pos<0

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       675
{txt}{hline 13}{c +}{hline 34}   F(1, 673)       = {res}    19.89
{txt}       Model {c |} {res} 4.74463183         1  4.74463183   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 160.520553       673  .238514938   {txt}R-squared       ={res}    0.0287
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0273
{txt}       Total {c |} {res} 165.265185       674  .245200571   {txt}Root MSE        =   {res} .48838

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  MormENV_di{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}MormTreat {c |}{col 14}{res}{space 2} .1677207{col 26}{space 2} .0376048{col 37}{space 1}    4.46{col 46}{space 3}0.000{col 54}{space 4} .0938839{col 67}{space 3} .2415575
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3424242{col 26}{space 2} .0268844{col 37}{space 1}   12.74{col 46}{space 3}0.000{col 54}{space 4} .2896368{col 67}{space 3} .3952117
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg MormDV MormTreat if env_pos<0

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       676
{txt}{hline 13}{c +}{hline 34}   F(1, 674)       = {res}     9.10
{txt}       Model {c |} {res} .497707542         1  .497707542   {txt}Prob > F        ={res}    0.0027
{txt}    Residual {c |} {res} 36.8686764       674    .0547013   {txt}R-squared       ={res}    0.0133
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0119
{txt}       Total {c |} {res}  37.366384       675  .055357606   {txt}Root MSE        =   {res} .23388

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      MormDV{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}MormTreat {c |}{col 14}{res}{space 2} .0542832{col 26}{space 2}  .017996{col 37}{space 1}    3.02{col 46}{space 3}0.003{col 54}{space 4} .0189481{col 67}{space 3} .0896183
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .4111953{col 26}{space 2} .0128748{col 37}{space 1}   31.94{col 46}{space 3}0.000{col 54}{space 4} .3859157{col 67}{space 3} .4364749
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. ivregress 2sls MormDV (MormENV_di=MormTreat) if env_pos<0
{res}
{txt}{col 1}Instrumental variables 2SLS regression{col 51}Number of obs{col 67}= {res}       675
{txt}{col 1}{col 51}Wald chi2({res}1{txt}){col 67}= {res}      7.96
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0048
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .24269

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      MormDV{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}MormENV_di {c |}{col 14}{res}{space 2} .3144148{col 26}{space 2} .1114151{col 37}{space 1}    2.82{col 46}{space 3}0.005{col 54}{space 4} .0960452{col 67}{space 3} .5327844
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .303532{col 26}{space 2} .0486081{col 37}{space 1}    6.24{col 46}{space 3}0.000{col 54}{space 4} .2082618{col 67}{space 3} .3988023
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 12 89}Endogenous: {res:MormENV_di}{p_end}
{p 0 12 89}Exogenous:{space 1} {res:MormTreat}{p_end}

{com}. 
. 
. *oppose
. reg MormENV_di MormTreat if env_pos>0

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       167
{txt}{hline 13}{c +}{hline 34}   F(1, 165)       = {res}     8.54
{txt}       Model {c |} {res} 1.44433346         1  1.44433346   {txt}Prob > F        ={res}    0.0040
{txt}    Residual {c |} {res}   27.90896       165  .169145212   {txt}R-squared       ={res}    0.0492
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0434
{txt}       Total {c |} {res} 29.3532934       166  .176827069   {txt}Root MSE        =   {res} .41127

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  MormENV_di{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}MormTreat {c |}{col 14}{res}{space 2} .1864016{col 26}{space 2}  .063789{col 37}{space 1}    2.92{col 46}{space 3}0.004{col 54}{space 4} .0604537{col 67}{space 3} .3123495
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1282051{col 26}{space 2} .0465675{col 37}{space 1}    2.75{col 46}{space 3}0.007{col 54}{space 4} .0362602{col 67}{space 3}   .22015
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg MormDV MormTreat if env_pos>0

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       167
{txt}{hline 13}{c +}{hline 34}   F(1, 165)       = {res}     0.56
{txt}       Model {c |} {res}  .03796932         1   .03796932   {txt}Prob > F        ={res}    0.4551
{txt}    Residual {c |} {res} 11.1738296       165  .067720179   {txt}R-squared       ={res}    0.0034
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}   -0.0027
{txt}       Total {c |} {res} 11.2117989       166  .067540957   {txt}Root MSE        =   {res} .26023

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      MormDV{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}MormTreat {c |}{col 14}{res}{space 2}-.0302226{col 26}{space 2} .0403622{col 37}{space 1}   -0.75{col 46}{space 3}0.455{col 54}{space 4}-.1099156{col 67}{space 3} .0494704
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .4490741{col 26}{space 2} .0294654{col 37}{space 1}   15.24{col 46}{space 3}0.000{col 54}{space 4} .3908963{col 67}{space 3} .5072518
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. ivregress 2sls MormDV (MormENV_di=MormTreat) if env_pos>0
{res}
{txt}{col 1}Instrumental variables 2SLS regression{col 51}Number of obs{col 67}= {res}       167
{txt}{col 1}{col 51}Wald chi2({res}1{txt}){col 67}= {res}      0.54
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.4634
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .26572

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      MormDV{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}MormENV_di {c |}{col 14}{res}{space 2}-.1621372{col 26}{space 2} .2211028{col 37}{space 1}   -0.73{col 46}{space 3}0.463{col 54}{space 4}-.5954908{col 67}{space 3} .2712164
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .4698609{col 26}{space 2} .0543506{col 37}{space 1}    8.65{col 46}{space 3}0.000{col 54}{space 4} .3633358{col 67}{space 3}  .576386
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 12 89}Endogenous: {res:MormENV_di}{p_end}
{p 0 12 89}Exogenous:{space 1} {res:MormTreat}{p_end}

{com}. 
. 
. *table a1. demographics
. tab sex

        {txt}sex {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}        391       36.20       36.20
{txt}          2 {c |}{res}        687       63.61       99.81
{txt}          3 {c |}{res}          2        0.19      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,080      100.00
{txt}
{com}. sum age, detail

                             {txt}age
{hline 61}
      Percentiles      Smallest
 1%    {res}        2              1
{txt} 5%    {res}        2              1
{txt}10%    {res}        3              2       {txt}Obs         {res}      1,080
{txt}25%    {res}        4              2       {txt}Sum of wgt. {res}      1,080

{txt}50%    {res}        5                      {txt}Mean          {res} 5.075926
                        {txt}Largest       Std. dev.     {res} 1.690012
{txt}75%    {res}        6              9
{txt}90%    {res}        7              9       {txt}Variance      {res} 2.856139
{txt}95%    {res}        8              9       {txt}Skewness      {res}-.0004672
{txt}99%    {res}        8              9       {txt}Kurtosis      {res} 2.057138
{txt}
{com}. tab race

       {txt}race {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}        853       78.98       78.98
{txt}          2 {c |}{res}        135       12.50       91.48
{txt}          3 {c |}{res}         27        2.50       93.98
{txt}          4 {c |}{res}         47        4.35       98.33
{txt}          5 {c |}{res}         18        1.67      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,080      100.00
{txt}
{com}. tab educ

       {txt}educ {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}         55        5.09        5.09
{txt}          2 {c |}{res}        312       28.89       33.98
{txt}          3 {c |}{res}        254       23.52       57.50
{txt}          4 {c |}{res}        141       13.06       70.56
{txt}          5 {c |}{res}        195       18.06       88.61
{txt}          6 {c |}{res}        101        9.35       97.96
{txt}          7 {c |}{res}         22        2.04      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,080      100.00
{txt}
{com}. tab PID3

  {txt}RECODE of {c |}
        PID {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}        488       35.72       35.72
{txt}          2 {c |}{res}        469       34.33       70.06
{txt}          3 {c |}{res}        409       29.94      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,366      100.00
{txt}
{com}. tab ideo3

  {txt}RECODE of {c |}
       ideo {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}        415       30.38       30.38
{txt}          2 {c |}{res}        529       38.73       69.11
{txt}          3 {c |}{res}        422       30.89      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,366      100.00
{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\scottclifford\Dropbox\Research\Group Attitudes\Replication\s3log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}29 May 2024, 16:00:31
{txt}{.-}
{smcl}
{txt}{sf}{ul off}